package com.woniu.entity;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
 * 常量类，定义各种常量
 */
@Component
public class Constant {

//    // Redis相关配置
//    public static final String REDIS_ALL_UPLOAD_IMAGE = "redis_all_upload_image";
//    public static final String REDIS_DB_UPLOAD_IMAGE = "redis_db_upload_image";
//
//    @Value("${qiNiu.accessKey}")
//    private String accessKey;
//    @Value("${qiNiu.secretKey}")
//    private String secretKey;
//    @Value("${qiNiu.bucket}")
//    private String bucket;
//    public static String ACCESSKEY;
//    public static String SECRETKEY;
//    public static String BUCKET;
//    // 对象创建之后执行该方法
//    @PostConstruct
//    public void init(){
//        ACCESSKEY = this.accessKey;
//        SECRETKEY = this.secretKey;
//        BUCKET = this.bucket;
//    }
}
